package com.wondedDream.service;

import com.wondedDream.model.Practice;
import com.wondedDream.model.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface PracticeService {


    Practice savePractice(Practice practice);

    void deletePractice(Integer id);

    Practice updatePractice(Practice practice);

    Practice getPracticeById(Integer id);


    List<Practice> getPracticesByCategoryId(Integer categoryId);

    List<Practice> getPracticesByCategoryIdAndOpenId(Integer categoryId, String userOpenId);


    List<Practice> getAllPractices();

    void createPracticeQuestionByFileJson();
}